<base href="<?php echo base_url();?>" />
<link rel="stylesheet" href="assets/style.css" type="text/css" media="screen"/>

<table>
	<thead>
	    <tr>
	      <th>ID</th>
	      <th>Beschreibung</th>
	      <th>Bearbeiten</th>
	      <th>Noten Skala</th>
	    </tr>
  	</thead>
	<tbody >
		<?php foreach ($noten as $row): ?>
	    <tr>
	        <td><?php echo $row['Code'];?></td>
	        <td><?php echo $row['Beschreibung'];?></td>
	        <td>
		        <?php $this->load->helper(array('form')); ?>
		    	<?php echo validation_errors(); ?>
				<?php echo form_open('noten_controller/validate_view')?>
				<input type="input" name="notencode" hidden="true" value=<?php echo $row['Code'];?>  />			
	        	<input class="art-button" type='submit' name='submit' value='Ändern' > 	       
	        </td>
	        </form>
	        <td>
	        	<?php $this->load->helper(array('form')); ?>
		    	<?php echo validation_errors(); ?>
				<?php echo form_open('notenskala_controller/notenskala_view')?>
				<input type="input" name="notencode" hidden="true" value=<?php echo $row['Code'];?>  />
	        	<input class="art-button" type='submit' name='submit' value='Noten Skala festlegen' > 
	        </td>
	 		</form>   
	    </tr>
		<?php endforeach; ?>
	</tbody>
</table>
<?php for($i = 0; $i < $pages; $i++): ?>
<?php 
    $j = $i+1;
    echo anchor('noten_controller/notenlistview/'.$i, ''.$j, 'class="link-class"') 
?> &nbsp;
<?php endfor ?>

<?php $this->load->helper(array('form')); ?>
<?php echo validation_errors(); ?>
<?php echo form_open('noten_controller/create_view')?>
	<input class="art-button" type='submit' name='submit' value='Neuer Noten Code' > 
	
